package com.example.mybasedemo.app.model.logic;


import android.text.TextUtils;

/**
 * Created by MPW on 2017/11/14.
 */

public class TopLineListModel {

    /**
     * summary : 摘要信息来一回大订单坏的蛋
     * webinar_subject :
     * sort : 111
     * status : 0
     * create_user_id : 402881f73e1c4ba4013e1c4c08470001
     * look_count : 1
     * deleted : 0
     * class_root : eb9aeb09061c4f76b6242bd196d9fe7a
     * id : 636178a9f7284b7d8615b2aad6200d4c
     * content :
     * is_show : 0
     * webinar_id :
     * charge : 0
     * source : 测试
     * update_time : 2017-11-16 13:33:23
     * goods_id : 100206
     * create_time : 2017-10-20 00:00:00
     * is_hot : 0
     * image_path : tianjiu/news/2017/10/20/750f1d6a-ad04-42e2-9bdb-981d309a19e6.jpg?x-oss-process=style/YS640320
     * is_recommend : 0
     * types : 4481754b1f794601ad644b33dc89bf4a
     * news_title : 趋势定时11:59
     */

    private String summary;
    private String webinar_subject;
    private int sort;
    private int status;
    private String create_user_id;
    private String create_user_name;
    private String createUserName;
    private int look_count;
    private int lookCount;
    private int deleted;
    private String class_root;
    private String id;
    private String content;//内容
    private int is_show;
    private String webinar_id;
    private int charge;//1三同，其他不显示
    private String source;
    private String update_time;
    private int goods_id;
    private String create_time;
    private int is_hot;
    private String image_path;
    private int is_recommend;
    private String types;
    private String news_title;//标题
    private String url;//图片集合
    private String logo;//店铺头像

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getWebinar_subject() {
        return webinar_subject;
    }

    public void setWebinar_subject(String webinar_subject) {
        this.webinar_subject = webinar_subject;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCreate_user_id() {
        return create_user_id;
    }

    public void setCreate_user_id(String create_user_id) {
        this.create_user_id = create_user_id;
    }

    public String getCreate_user_name() {
        if (TextUtils.isEmpty(create_user_name))
            return createUserName;
        return create_user_name;
    }

    public void setCreate_user_name(String create_user_name) {
        this.create_user_name = create_user_name;
    }

    public int getLook_count() {
        if (look_count==0){
            return lookCount;
        }
        return look_count;
    }

    public void setLook_count(int look_count) {
        this.look_count = look_count;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public int getLookCount() {
        return lookCount;
    }

    public void setLookCount(int lookCount) {
        this.lookCount = lookCount;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public String getClass_root() {
        return class_root;
    }

    public void setClass_root(String class_root) {
        this.class_root = class_root;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content==null?"":content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getIs_show() {
        return is_show;
    }

    public void setIs_show(int is_show) {
        this.is_show = is_show;
    }

    public String getWebinar_id() {
        return webinar_id;
    }

    public void setWebinar_id(String webinar_id) {
        this.webinar_id = webinar_id;
    }

    public int getCharge() {
        return charge;
    }

    public void setCharge(int charge) {
        this.charge = charge;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getIs_hot() {
        return is_hot;
    }

    public void setIs_hot(int is_hot) {
        this.is_hot = is_hot;
    }

    public String getImage_path() {
        return image_path;
    }

    public void setImage_path(String image_path) {
        this.image_path = image_path;
    }

    public int getIs_recommend() {
        return is_recommend;
    }

    public void setIs_recommend(int is_recommend) {
        this.is_recommend = is_recommend;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getNews_title() {
        return news_title==null?"":news_title ;
    }

    public void setNews_title(String news_title) {
        this.news_title = news_title;
    }

    @Override
    public String toString() {
        return "TopLineListModel{" +
                "summary='" + summary + '\'' +
                ", webinar_subject='" + webinar_subject + '\'' +
                ", sort=" + sort +
                ", status=" + status +
                ", create_user_id='" + create_user_id + '\'' +
                ", create_user_name='" + create_user_name + '\'' +
                ", createUserName='" + createUserName + '\'' +
                ", look_count=" + look_count +
                ", lookCount=" + lookCount +
                ", deleted=" + deleted +
                ", class_root='" + class_root + '\'' +
                ", id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", is_show=" + is_show +
                ", webinar_id='" + webinar_id + '\'' +
                ", charge=" + charge +
                ", source='" + source + '\'' +
                ", update_time='" + update_time + '\'' +
                ", goods_id=" + goods_id +
                ", create_time='" + create_time + '\'' +
                ", is_hot=" + is_hot +
                ", image_path='" + image_path + '\'' +
                ", is_recommend=" + is_recommend +
                ", types='" + types + '\'' +
                ", news_title='" + news_title + '\'' +
                ", url='" + url + '\'' +
                ", logo='" + logo + '\'' +
                '}';
    }
}
